<?php if($sf_user->hasFlash('error')): ?>
<div class="alert alert-error">
        <button type="button" class="close" data-dismiss="alert">×</button>
        <strong>错误！</strong>  <?php echo $sf_user->getFlash('error'); ?>
</div>
<?php endif; ?>
<?php if($sf_user->hasFlash('success')): ?>
<div class="alert alert-success">
        <button type="button" class="close" data-dismiss="alert">×</button>
        <strong>操作成功！</strong> <?php echo $sf_user->getFlash('success'); ?>
</div>
<?php endif; ?>
<?php if($sf_user->hasFlash('notice')): ?>
<div class="alert alert-info">
        <button type="button" class="close" data-dismiss="alert">×</button>
        <strong><?php echo $sf_user->getFlash('notice'); ?></strong> 
</div>
<?php endif; ?>